package com.example.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;


@Data
public class Account {
    public static final String ID = "id";
    public static final String USERNAME = "username";
    public static final String PASSWORD = "password";
    public static final String NAME = "name";
    public static final String AVATAR = "avatar";
    public static final String ROLE = "role";
    public static final String PHONE = "phone";
    public static final String EMAIL = "email";
    public static final String NEW_PASSWORD = "newPassword";
    public static final String TOKEN = "token";
    public static final String VER_CODE = "verCode";


    @TableId(value = ID, type = IdType.AUTO)
    private Integer id;


    @TableField(USERNAME)
    private String username;


    @TableField(PASSWORD)
    private String password;

    @TableField(NAME)
    private String name;

    @TableField(AVATAR)
    private String avatar;

    @TableField(ROLE)
    private String role;

    @TableField(PHONE)
    private String phone;

    @TableField(EMAIL)
    private String email;

    @TableField(exist = false)
    private String newPassword;

    @TableField(exist = false)
    private String token;

    @TableField(exist = false)
    private String verCode;
}